package com.yayun.merchant.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yayun.common.annotation.Excel;
import com.yayun.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 购物车对象 oms_cart
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OmsCart extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 购物车ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** SKU ID */
    @Excel(name = "SKU ID")
    private Long skuId;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Integer quantity;

    /** 添加时价格 */
    @Excel(name = "添加时价格")
    private BigDecimal price;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品图片 */
    private String productPic;

    /** 商品规格(JSON格式) */
    private String productAttr;

    /** 是否选中：0->未选中；1->选中 */
    @Excel(name = "是否选中", readConverterExp = "0=未选中,1=选中")
    private Integer checked;

    /** 商品状态：0->失效；1->有效 */
    @Excel(name = "商品状态", readConverterExp = "0=失效,1=有效")
    private Integer status;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;
} 